﻿<%@ Page Title="Topics" Language="C#" MasterPageFile="~/Posts/Posts.master" AutoEventWireup="true"
    CodeFile="Topics.aspx.cs" Inherits="Posts_Topics" %>

<%@ Register Src="Header.ascx" TagName="Header" TagPrefix="uc2" %>
<asp:Content ID="Content3" ContentPlaceHolderID="phMain" runat="Server">
    <uc2:Header ID="Header1" runat="server" />
    <div class="tabPage clearfix">
        <asp:Panel ID="actions" CssClass="actions clearfix" runat="server">
            <div class="floatRight">
                <acms:ActionButton ID="lnkEdit" Icon="Edit" ToolTip="Edit The Nodes Details." runat="server"
                    OnClick="lnkEdit_Click" Text="Edit" />
                <acms:ActionButton ID="lnkSave" Icon="Save" OnClick="lnkSave_Click" ToolTip="Save Changes."
                    runat="server" Text="Save" />
                <acms:ActionButton ID="lnkCancel" Icon="Cancel" OnClick="lnkCancel_Click" ToolTip="Cancel Changes."
                    runat="server" Text="Cancel" />
            </div>
        </asp:Panel>
        <acms:AcmsDataList ID="dlTopicGroups" DataSourceID="dsTopicGroups" DataKeyFields="Id"
            runat="server" OnItemCreated="dlTopicGroups_ItemCreated">
            <ItemStyle CssClass="itemPanel" />
            <ItemTemplate>
                <acms:InfoPopUp ID="topicGroupInfo" Text='<%#Eval("Notes") %>' CssClass="infoPopUp" runat="server" />
                <b><%#Eval("Name") %></b>
                <div class="box">
                    <asp:CheckBoxList ID="itemCheckboxList" RepeatDirection="Horizontal" RepeatLayout="Flow"
                        CssClass="horizontalCheckBoxList" DataTextField="Name" DataValueField="Id" OnDataBinding="itemCheckboxList_DataBinding"
                        OnDataBound="itemCheckboxList_DataBound" runat="server" />
                    <asp:Label ID="lblTopic" AssociatedControlID="txtTopic" Text='<%#Eval("Name", "Add New \"{0}\" Topic") %>' Visible="false" runat="server" />
                    <asp:TextBox ID="txtTopic" Visible="false" runat="server" />
                </div>
            </ItemTemplate>
        </acms:AcmsDataList>
    </div>
    <telerik:RadAjaxManager ID="ajaxManager" DefaultLoadingPanelID="loading" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="actions">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="actions" LoadingPanelID="emptyloading" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="loading" SkinID="Loading" Transparency="50" runat="server">
        <img alt="Loading..." src="../icons/loading1.gif" style="border: 0px;" />
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxLoadingPanel ID="emptyloading" Transparency="1000" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <acms:TopicGroupDataSource ID="dsTopicGroups" OnSelectData="dsTopicGroups_SelectData"
        runat="server" />
</asp:Content>
